package com.neuedu.His02.controller.outpatientDoctorWorkStation;

import com.neuedu.His02.entity.MedicalRecord;
import com.neuedu.His02.entity.Register;
import com.neuedu.His02.entity.User;
import com.neuedu.His02.service.outpatientDoctorWorkStationService.AfterDiagnosisService;
import com.neuedu.His02.util.EnumCode;
import com.neuedu.His02.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author GSJ
 * @description 诊毕控制类
 */
@RestController
public class AfterDiagnosisController {

    @Resource
    private AfterDiagnosisService service;

    /**
     * @return {@link ResultUtil}
     * @author GSJ
     * @description 初始化待诊毕的病人
     */
    @PostMapping("/outpatientDoctorWorkStation/afterDiagnosis/initPatients")
    public ResultUtil initPatients(@RequestBody User user) {
        return null;
    }

    /**
     * @return {@link ResultUtil}
     * @author GSJ
     * @description 根据姓名搜索患者
     */
    @RequestMapping("/outpatientDoctorWorkStation/afterDiagnosis/searchByName")
    public ResultUtil searchByName(Register user) {
          return null;
    }

    /**
     * @return {@link ResultUtil}
     * @author GSJ
     * @description 根据病历号搜索患者
     */
    @RequestMapping("/outpatientDoctorWorkStation/afterDiagnosis/searchByNumber")
    public ResultUtil searchByNumber(Register user) {
        return null;
    }

    /**
     * @return {@link ResultUtil}
     * @author GSJ
     * @description 初始化患者的病历首页
     */
    @RequestMapping("/outpatientDoctorWorkStation/afterDiagnosis/initRecord")
    public ResultUtil initRecord(MedicalRecord user) {
        return null;
    }

    /**
     * @return {@link ResultUtil}
     * @author GSJ
     * @description 对患者进行诊毕操作(更新挂号表)
     */
    @RequestMapping("/outpatientDoctorWorkStation/afterDiagnosis/commitEndPatient")
    public ResultUtil commitEndPatient(Register register) {
        return null;
    }

    /**
     * @return {@link ResultUtil}
     * @author GSJ
     * @description 对患者进行诊毕操作(更新病历首页表)
     */
    @RequestMapping("/outpatientDoctorWorkStation/afterDiagnosis/commitEndMedicalRecord")
    public ResultUtil commitEndMedicalRecord(MedicalRecord medicalRecord) {
        return null;
    }
}
